﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mepostras.BLL;
namespace mepostras.BO
{
    public interface IAppointmentBo
    {
        /// <summary>
        /// Render từ Id thành chuỗi để lưu LocalId. 
        /// Ex: 1 => APT00001
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        string RenderLocalId(int id);

        /// <summary>
        /// cập nhật appointment
        /// </summary>
        /// <param name="appointment"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Update(Appointment appointment, out string messageCode);

        /// <summary>
        /// Tạo mới appointment
        /// </summary>
        /// <param name="appointment"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Insert(Appointment appointment, out string messageCode);

        /// <summary>
        /// Customer book appointment
        /// </summary>
        /// <param name="appointment"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Book(Appointment appointment, out string messageCode);

        /// <summary>
        /// Xóa appointment
        /// </summary>
        /// <param name="id"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Delete(int id, out string messageCode);

    }
}
